package it.cast.wechat.service.ServiceImpl;

import it.cast.wechat.mapper.SellerMapper;
import it.cast.wechat.pojo.Seller;
import it.cast.wechat.pojo.SellerExample;
import it.cast.wechat.service.SellerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SellerServiceImpl implements SellerService {
    @Autowired
    private SellerMapper sellerMapper;

    @Override
    public List<Seller> sellerList() {
        SellerExample example = new SellerExample();
        SellerExample.Criteria criteria = example.createCriteria();
        criteria.andSellerIdIsNotNull();
        List<Seller> sellers = sellerMapper.selectByExample(example);
        return sellers;
    }
}
